package com.edeweiss.community.services.servicesImp;

import com.edeweiss.community.dao.NoticeDao;
import com.edeweiss.community.dao.daoImp.NoticeDaoImp;
import com.edeweiss.community.domain.Notice;
import com.edeweiss.community.services.NoticeService;

import java.util.List;

public class NoticeServiceImp implements NoticeService {
    NoticeDao noticeDao = new NoticeDaoImp();
	@Override
	public List<Notice> findNotice() {

		List<Notice> no = noticeDao.findNotice();
		return no;
	}

    @Override
    public void delNotice(String nid) {
        noticeDao.delNotice(nid);
    }

    @Override
    public int addNotic(Notice notice) {
        return noticeDao.addNotice(notice);
    }

}
